package com.example.service.pojo;

import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

import java.io.Serial;
import java.io.Serializable;
import java.util.Date;

/**
 *
 */
@TableName("t_student")
@Data
@Schema(description="学生信息")
public class Student implements Serializable {
    @Schema(description="学生id")
    private Integer id;

    @Schema(description="学生姓名")
    private String name;

    @Schema(description="学号")
    private Long no;

    @Schema(description="性别")
    private Boolean gender;

    @Schema(description="入学时间")
    @JsonFormat(pattern = "yyyy-MM-dd",timezone = "GMT+8")
    private Date enrolledTime;

    @Schema(description="密码")
    private String password;

    @Serial
    private static final long serialVersionUID = 1L;
}